<template>
  <div class="home-container">
    <div class="app-header">
      <h1>TripMateAI</h1>
      <p class="tagline">您的智能旅游伙伴</p>
    </div>
    <div class="app-cards">
      <router-link to="/trip-chat" class="app-card">
        <div class="app-icon trip-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
            <path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/>
            <circle cx="12" cy="10" r="3"/>
          </svg>
        </div>
        <h2>AI 旅游推荐</h2>
        <p>获取个性化的旅游建议和行程规划</p>
      </router-link>
      <router-link to="/manus-chat" class="app-card">
        <div class="app-icon manus-icon">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
            <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
            <polyline points="14 2 14 8 20 8"/>
            <line x1="16" y1="13" x2="8" y2="13"/>
            <line x1="16" y1="17" x2="8" y2="17"/>
            <polyline points="10 9 9 9 8 9"/>
          </svg>
        </div>
        <h2>AI 智能体</h2>
        <p>获取AI的工具调用过程</p>
      </router-link>
    </div>
    <footer class="app-footer">
      <p>2025 TripMateAI - 智能旅游助手</p>
    </footer>
  </div>
</template>

<style scoped>
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.app-header {
  text-align: center;
  margin-bottom: 3rem;
}

.app-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
  font-weight: 700;
}

.tagline {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 400;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  margin-bottom: 3rem;
}

.app-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #667eea;
}

.app-icon svg {
  width: 40px;
  height: 40px;
}

.app-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #111827;
}

.app-card p {
  color: #6b7280;
  line-height: 1.5;
  font-size: 1rem;
}

.app-footer {
  margin-top: auto;
  padding-top: 3rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .home-container {
    padding: 3rem 1.5rem;
  }
  
  .app-header h1 {
    font-size: 2.8rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .app-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
  }
  
  .app-card {
    padding: 2.5rem 2rem;
    min-height: 240px;
  }
  
  .app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }
  
  .app-icon svg {
    width: 40px;
    height: 40px;
  }
}
</style>